package com.rdtravel.converters;

import com.rdtravel.entities.Trip;

import org.springframework.core.convert.converter.Converter;

public class TripToStringConverter implements Converter<Trip, String> {

	@Override
	public String convert(Trip trip) {
		if (trip == null) {
			return null;
		}
		return String.valueOf(trip.getId());
	}

}
